package ecmnext.server.gui;

/***************************************************************/
/*                     SOFTWARE SECTION                        */
/***************************************************************/
/*
 * <p>Name: ECMNext</p>
 * <p>Description: Simulation of the platform of trading Software</p>
 * <p>Licence: General Public License</p>
 * <p>Organisation: EC Marseille</p>
 * <p>Persons involved in the project : groupe Plateforme de Trading</p>
 * <p>Current version: 1.0</p>
 */


/***************************************************************/
/*                       IMPORT SECTION                        */
/***************************************************************/

import javax.swing.*;

import ecmnext.business.*;

/***************************************************************/
/*               InstitutionNode CLASS SECTION                 */
/***************************************************************/
/**
 * <p>Title : InstitutionNode</p>
 * <p>Description : </p>
 * @author Xuewen YANG ET Antoine COUDERC
 * @version 1.0
 */

public class InstitutionNode implements DisplayableNode {
  public InstitutionNode() {
    try {
      jbInit();
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }
  }


  public void setEditable(){
  }
  public void setUneditable(){
  }

  private JPanel panel;

  public InstitutionNode(Institution instit) {
    this.panel = instit.getServerPanel();
  }

  public JPanel getPanel() {
    return panel;
  }

  public String toString() {
    return this.panel.toString();
  }

  private void jbInit() throws Exception {
  }

}
